import request from '@/utils/request'

// 查询族内悄悄话列表
export function listMessage(query) {
  return request({
    url: '/system/message/list',
    method: 'get',
    params: query
  })
}

// 查询族内悄悄话详细
export function getMessage(msgId) {
  return request({
    url: '/system/message/' + msgId,
    method: 'get'
  })
}

// 新增族内悄悄话
export function addMessage(data) {
  return request({
    url: '/system/message',
    method: 'post',
    data: data
  })
}

// 修改族内悄悄话
export function updateMessage(data) {
  return request({
    url: '/system/message',
    method: 'put',
    data: data
  })
}

// 删除族内悄悄话
export function delMessage(msgId) {
  return request({
    url: '/system/message/' + msgId,
    method: 'delete'
  })
}
